package cn.tedu.hongbei.pms.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AttributeTemplateUpdateInfoParam implements Serializable {
    @NotNull(message = "必须提交属性模板名称!")
    @ApiModelProperty(value = "属性模板名称",required = true,example = "可乐的属性模板")
    private String name;
    @NotNull(message = "必须提交属性模板拼音!")
    @ApiModelProperty(value = "属性模板拼音",required = true,example = "可乐的属性模板拼音")
    private String pinyin;
    @NotNull(message = "必须提交属性模板关键字!")
    @ApiModelProperty(value = "属性模板关键字",required = true,example = "可乐的属性模板关键字")
    private String keywords;
    @NotNull(message = "必须提交排序序号")
    @Range(max = 99, message = "排序序号值必须0~99之间")
    @ApiModelProperty(value = "属性模板名称,必须在1-255之间",required = true,example = "98")
    private Integer sort;


}
